package com.capgemini.fs.app.ekms.model;

import java.util.Set;

public class Group extends Entity implements java.io.Serializable {

    private static final long serialVersionUID = 8376984511305833658L;
    
    private String groupName;
    private Integer status;
    private String description;
    private Set<User> users;

    public Set<User> getUsers() {
        return users;
    }

    public void setUsers(Set<User> users) {
        this.users = users;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int compareTo(Entity o) {
        try {
            Group g = (Group)o;
            return this.groupName.compareTo(g.getGroupName());
        } catch (Exception e) {
            return super.compareTo(o);
        }
    }
    
   

}
